<?php
/*
an associative array called $urls, 
where the regex of matching url patterns
is the key to an array of properties.

The regex should match the requested uri exactly, 
except for file extensions, which will be stripped off
 automatically, and passed to the class as a parameter 
called 'file_extension'.

The array keys ought to be valid variable names, 
so that they can be set as properties of the instantiated
class. 

'class' is essential : 
the rest are passed as parameters to an instance
of that class, which should contain methods named 
after the HTTP methods they respond to. 

'template' should be the name of a template, 
without the file extension, in the templates directory

the Collection class needs an rdf_type parameter, which can be a single value, or an array of rdf types.

*/


$urls = array(
	'/*' => array(
				'template' => 'convert',
				'class' => 'Convert',
				'title' => 'Morph'
			//	'store_uri' => MY_STORE,
			),
		'/about' => array(
			'class' => 'Page',
			'template' => 'about',
			'title' => 'About',
			),
	'/editor' => array(
				'template' => 'Forms/edit',
				'class' => 'Convert',
				'action' => 'edit',
				'title' => 'RDF Editor',
	),
	'/editor/turtle' => array(
				'template' => 'Forms/turtle',
				'class' => 'Convert',
				'action' => 'edit',
				'title' => 'Turtle RDF Editor',
	),
	// '/stores/$' => array(
	// 			'template' => 'stores',
	// 			'class' => 'Stores',
	// 	),	
	// '/stores/services/sparql' => array(
	// 			'template' => 'storessparql',
	// 			'class' => 'StoresSparql',
	// 			'store_uri' => 'http://api.talis.com/stores/silkworm-dev',
	// 	),	
	// 
	// '/(.+?)/$' => array(
	// 			'template' => 'store',
	// 			'class' => 'Page',
	// 			'store_uri' => 'http://api.talis.com/stores/$1',
	// 			'store_name' => '$1',
	// 	),	
	// '/(.+?)/services/sparql' => array(
	// 			'template' => 'sparql',
	// 			'class' => 'Sparqler',
	// 			'store_uri' => 'http://api.talis.com/stores/$1',
	// 	),
	// 
	// '/(.+?)/services/augment' => array(
	// 			'template' => 'convert',
	// 			'class' => 'Augment',
	// 			'store_uri' => 'http://api.talis.com/stores/$1',
	// 			'title' => 'Augment Service for $1',
	// 	),
	// 
	// '/(.+?)/services/analyse' => array(
	// 			'template' => 'convert',
	// 			'class' => 'Analyse',
	// 			'store_uri' => 'http://api.talis.com/stores/$1',
	// 	),
	
	
);
?>